package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    void insertFlavor(List<DishFlavor> flavors);

    /**
     * 根据dish_id批量删除数据
     * @param ids
     */
    void deleteDishFlavorByDishIds(List<Long> dishIds);

    @Select("select * from dish_flavor where dish_id = #{dishId}")
    public List<DishFlavor> getFlavorByDishId (Long dishId);
}
